from django.db import models

# Create your models here.


class User(models.Model):
    username = models.CharField(max_length=16)
    password = models.CharField(max_length=16)


class User2(models.Model):
    username = models.CharField(max_length=16)


class News(models.Model):
    topic = models.CharField(max_length=160)
    sender = models.ForeignKey(to=User2, on_delete=models.CASCADE, related_name='sender_set')
    collectors = models.ManyToManyField(to=User2, related_name='collectors_set')